jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Fri, 24 Apr 2026 01:36:40 +0000 (13:36 +1200)
committerVladimir Petko <vladimir.petko@canonical.com>
Fri, 24 Apr 2026 01:36:40 +0000 (13:36 +1200)
commit5c0b29c22f3230d898c862db54cc4b3f100215bb
treea1bc4613402d6584c87229298139417a052d3c52
parent5564999fe3ae92c47fa201f667d5fc428b5854b3
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk